package Demo16_30.Test18;

/**
 * Created by 14229 on 2020/1/21.
 */
public class Test {
    public static void main(String[] args) {

        Car c01 = new Alto("奥迪","蓝色",50000.123);
        Car c02 = new Alto("奥拓","灰色",20000.456);
        RentalHouse rh = new RentalHouse();
        double a = rh.rent(c01, 10);
        double b = rh.rent(c02, 2);
        System.out.println("奥迪出租价钱："+a);
        System.out.println("奥拓出租价钱："+b);
    }
}
